﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class ProductShopCategoryInfoConfig : EntityTypeConfiguration<ProductShopCategoryInfo>
    {
        public ProductShopCategoryInfoConfig()
        {
            ToTable("Himall_ProductShopCategories");
         
            HasRequired(x => x.ShopCategoryInfo).WithMany(x => x.ProductShopCategoryInfo).HasForeignKey(x => x.ShopCategoryId);
            HasRequired(x => x.ProductInfo).WithMany(x => x.Himall_ProductShopCategories).HasForeignKey(x => x.ProductId);
        }
    }
}
